"""
1*1=1
1*2=2  2*2=4
1*3=3  2*3=6
...    ...
...    ...
1*9=9  2*9=18
"""

for i in range(1, 10):
    for j in range(1, i + 1):
        print("%d*%d=%d " % (j, i, i * j), end=' ')
    print()

